#include<stdio.h>
#include<stdlib.h>
int main(void)
{
	char a[100]="";
	char b[100]="";
	int i=0,count=0;
	gets(a);
	while(a[i]!='\0')
	{
		if(a[i]==','||a[i]=='.'||a[i]=='?'||a[i]=='!'||a[i]==32)
			{
				i++;
			continue;
			}
		else
		    {
				b[count]=a[i];
				count++;
				i++;
            }
	}
	puts(b);
	return 0;
}
